//
//  YXWebsiteInfoTableViewCell.m
//  跑跑快销
//
//  Created by 杨潇 on 14-5-5.
//  Copyright (c) 2014年 ylife. All rights reserved.
//

#import "YXWebsiteInfoTableViewCell.h"

@implementation YXWebsiteInfoTableViewCell
@synthesize showImgVi,nameLab,addressLab;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        self.backgroundColor = [UIColor clearColor];
        showImgVi = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, 25, 25)];
        showImgVi.backgroundColor = [UIColor blackColor];
        showImgVi.layer.cornerRadius = 12.5;
        [self addSubview:showImgVi];
        
        nameLab = [[UILabel alloc] initWithFrame:CGRectMake(showImgVi.frame.origin.x + showImgVi.frame.size.width + 15, showImgVi.frame.origin.y, 320 - showImgVi.frame.origin.x - showImgVi.frame.size.width - 15, showImgVi.frame.size.height)];
        nameLab.font = [UIFont boldSystemFontOfSize:18];
        [self addSubview:nameLab];
        
        addressLab = [[UILabel alloc] initWithFrame:CGRectMake(10, 50, 300, 15)];
        addressLab.font = [UIFont systemFontOfSize:14];
        addressLab.numberOfLines = 0;
        addressLab.lineBreakMode = NSLineBreakByWordWrapping;
        [self addSubview:addressLab];
    }
    return self;
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
